package com.atguigu.gamll.feign.product;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.vo.CategoryTreeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author lhh
 * @ClassName CategoryFeignClient
 * @date 2022 2022/12/3
 */

@FeignClient("service-product")
public interface CategoryFeignClient {

    /**
     * 获取三级属性
     * @return
     */
    @GetMapping("api/inner/rpc/product/getCategoryTree")
    Result<List<CategoryTreeVo>> getCategoryTree();
}
